/*
 * Filename:    HospitalProviderOrgDaoImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年10月24日
 */
package com.paic.mhis.hcpms.agreement.healthcareprovider.integration.dao.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.paic.mhis.common.base.dto.PaginatedQueryDTO;
import com.paic.mhis.hcpms.agreement.healthcareprovider.dto.HospitalProviderOrgDTO;
import com.paic.mhis.hcpms.agreement.healthcareprovider.integration.dao.HospitalProviderOrgDao;
import com.paic.pafa.biz.dao.BaseDAO;

@Service("hospitalProviderOrgDao")
public class HospitalProviderOrgDaoImpl extends BaseDAO implements
		HospitalProviderOrgDao {

	@Override
	public List<HospitalProviderOrgDTO> findHospitalProviderOrgList(
			PaginatedQueryDTO dto) {
		return (List<HospitalProviderOrgDTO>) super._list(
				"hospitalProviderOrgDao.findHospitalProviderOrgList", dto);
	}

	@Override
	public HospitalProviderOrgDTO findHospitalProviderOrgDetail(
			HospitalProviderOrgDTO dto) {
		return (HospitalProviderOrgDTO) super._queryForObject(
				"hospitalProviderOrgDao.findHospitalProviderOrgDetail", dto);
	}

	@Override
	public void addHospitalProviderOrg(HospitalProviderOrgDTO dto) {
		super._insert("hospitalProviderOrgDao.addHospitalProviderOrg", dto);
	}

	@Override
	public void updateHospitalProviderOrg(HospitalProviderOrgDTO dto) {
		super._update("hospitalProviderOrgDao.updateHospitalProviderOrg", dto);
	}

	@Override
	public int deleteHospitalProviderOrg(HospitalProviderOrgDTO dto) {
		return super._delete(
				"hospitalProviderOrgDao.deleteHospitalProviderOrg", dto);
	}

}
